const Loading = {
    ele: null,
    init() {
        ele = document.createElement('img');
        ele.setAttribute('src', '../../../assets/chapters/2/loading.gif');
    },
    show() {
        document.body.appendChild(ele);
    },
    close() {
        if (ele) {
            document.body.removeChild(ele);
        }
    }
}
Loading.init();